package com.etc.service.impl;

import java.util.List;

import com.etc.dao.impl.BussiteDaoImpl;
import com.etc.entity.Bussite;
import com.etc.service.BussiteService;
    /**
     * 中间站点增删改查业务层具体实现
     * @author xst
     *
     */
public class BussiteServiceImpl implements BussiteService {
	BussiteDaoImpl dao = new BussiteDaoImpl();

	/**
	 * 查询所有车辆站点信息
	 */
	@Override
	public List<Bussite> getBussites() {
		// TODO Auto-generated method stub
		return dao.queryBussites();
	}
	/**
	 * 根据车辆编号查询所有车辆站点信息
	 */
	@Override
	public List<Bussite> getBussitesByB_id(int b_id) {
		// TODO Auto-generated method stub
		return dao.queryBussitesByB_id(b_id);
	}
	/**
	 * 增加车辆站点信息
	 */
	@Override
	public boolean addBussite(Bussite bussite) {
		// TODO Auto-generated method stub
		return dao.addBussite(bussite);
	}
	/**
	 * 修改车辆站点信息
	 */
	@Override
	public boolean updatBussite(Bussite bussite) {
		// TODO Auto-generated method stub
		return dao.updatBussite(bussite);
	}
	/**
	 * 删除车辆站点信息
	 */
	@Override
	public boolean deleBussite(int bs_id) {
		// TODO Auto-generated method stub
		return dao.deleBussite(bs_id);
	}

}
